import type { DeviceLog } from './model';

import type { PageQuery, PageResult } from '#/api/common';

import { requestClient } from '#/api/request';

enum Api {
  recordPage = '/iot/device/log/page',
}

/**
 * 设备日志分页
 * @param params 参数
 * @returns 分页
 */
export function deviceLogPage(params?: PageQuery) {
  return requestClient.get<PageResult<DeviceLog>>(Api.recordPage, { params });
}
